<!DOCTYPE HTML>
<meta charset="UTF-8">
<script type="text/javascript" src="//libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">window.addEventListener('message', function (event) {
   // if (event.origin == 'http://m.xm9m.com') {
        var data = event.data;
		window.returnType = data['returnType']?data['returnType']:'default';
        $.ajax({
            type: data['type'] ? data['type'] : 'get',
            contentType: 'application/' + (data['contentType'] ? data['contentType'] : "json"),
            url: data['url'],
            data: {data:data['data']},
            success: function (data) {
				data['returnType'] = window.returnType;
				event.source.postMessage(data,"*");
            }
        })
   // }
}, false);</script>